<?php
/* @var $this UserController */
/* @var $data User */
?>

<div class="jumbotron top-space">
    <!--
	<b><?php echo CHtml::encode($data->getAttributeLabel('id')); ?>:</b>
	<?php echo CHtml::link(CHtml::encode($data->id), array('view', 'id'=>$data->id)); ?>
	<br />
    -->

	<b><?php echo CHtml::encode($data->getAttributeLabel('用户名')); ?>:</b>
    <?php echo CHtml::link(CHtml::encode($data->username), array('view', 'id'=>$data->id)); ?>
	<!-- <?php echo CHtml::encode($data->username); ?> -->
	<br />

    <!--
	<b><?php echo CHtml::encode($data->getAttributeLabel('password')); ?>:</b>
	<?php echo CHtml::encode($data->password); ?>
	<br />
    -->

	<b><?php echo CHtml::encode($data->getAttributeLabel('身份')); ?>:</b>
    <?php if($data->flag==1 || $data->username=='admin'): ?>
    <?php echo '管理员'; ?>
    <?php else: ?>
    <?php echo '谱通用户'; ?>
    <?php endif;?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('邮箱')); ?>:</b>
	<?php echo CHtml::encode($data->email); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('电话')); ?>:</b>
	<?php echo CHtml::encode($data->phone); ?>
	<br />

    <!--
	<b><?php echo CHtml::encode($data->getAttributeLabel('余额')); ?>:</b>
	<?php echo CHtml::encode($data->money); ?>
	<br />
    -->

	<?php /*
	<b><?php echo CHtml::encode($data->getAttributeLabel('address')); ?>:</b>
	<?php echo CHtml::encode($data->address); ?>
	<br />

	*/ ?>

</div>
